<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" href="../css/hairpin_record.css">
    <title>E卡发卡记录</title>
</head>

<body>
    <!-- 头部  s -->
    <header class="aui-bar aui-bar-nav aui-bar-light">
        <a class="aui-pull-left aui-btn" onclick="history.go(-1)" style="color: #333;">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">E卡发卡记录</div>
    </header>
    <!-- 头部  e -->
    <div class="aui-content aui-margin-b-15">
        <ul class="aui-list aui-media-list">
        </ul>
    </div>

    <template id="record" type="text/html">
			{{each list as value}}
			<ul class="aui-list aui-media-list">
				<li class="aui-list-header">
					{{value.treeDate}}
				</li>
				{{each value.children as val}}
				<li class="aui-list-item aui-list-item-middle">
					<div class="aui-media-list-item-inner">
						<div class="aui-list-item-media">
							<img src="{{val.picUrl}}" alt="" class="list-img"  />
						</div>
						<div class="aui-list-item-inner">
							<div class="aui-list-item-inner ">
								<div class="aui-list-item-title">用户{{val.user}}</div>
								<div class="aui-list-item-text aui-margin-t-10 " style="font-size: 0.5rem;font-weight: 300;">{{val.text}}</div>
							</div>
						</div>
					</div>
				</li>
				{{/each}}
			</ul>
			{{/each}}
		</template>
    <script src="../js/comment.js"></script>
    <script src="../js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/template.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        $(function() {
            $.ajax({
                type: "post",
                url: url + "/AmStoreClient/wealth_station/cardRecord?storeInfoId=989895",
                success: function(result) {
                    console.log(result)
                    var data = result.datas;
                    var temTel = template("record", data);
                    $(".aui-content .aui-list").html(temTel)
                }
            });
        })
    </script>
</body>

</html>